<template>
        <van-nav-bar
        :title="title"
        left-text="返回"
        left-arrow
        @click-left="toBack"
        fixed
        placeholder
        class="backTab"
        />
</template>


<script setup>
import {useRouter,useRoute} from 'vue-router'
import {computed} from 'vue'
let route = useRoute()
let router = useRouter()

let title = computed(()=>{
    return route.meta?.title ?? '新蜂优选'
})
function toBack(){
    router.go(-1)
}
</script>


<style lang="less" scoped>
@import '../style/common.less';

/deep/.van-nav-bar__text {
    color: #f5222d ;
}

/deep/ .van-badge__wrapper {
    color: #f5222d !important;
}
/deep/ .van-nav-bar__title{
    color: #f5222d;
}

</style>